import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css' // 导入全局样式表
import axios from 'axios' // 导入axios 请求服务器
import store from './store'


axios.defaults.baseURL = 'http://localhost:8089/myhome_war_exploded/' // 配置请求的服务器(后端项目)根路径
axios.defaults.withCredentials=true;//发送请求时带cookie,解决跨域，后端要允许跨域，可保存session

Vue.config.productionTip = false;
Vue.prototype.$axios = axios // 设置axios的全局访问


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
